To cache component definitions, use WOApplication's setCachingEnabled: method:
public Application() {By default, this type of caching is disabled as a convenience for debugging. If component-definition caching is disabled and you're writing an entirely scripted application, you can change code in a scripted component and see the effects of that change without having to relaunch the application. You should always enable component-definition caching when you deploy an application, since performance improves significantly.
super();
this.setCachingEnabled(true);
...
}
Instead of using setCachingEnabled:, you can also perform
component-definition caching by setting the WOCachingEnabled user default either on the command line or using the defaults command.
HelloWorld -WOCachingEnabled YES defaults write HelloWorld WOCachingEnabled YESFor more information on command-line options, see the online document Serving WebObjects.
Table of Contents
Next Section